﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Skynet.WebSite._Default" culture="en-US" meta:resourcekey="PageResource1" uiculture="auto"  %>
    <%@ Import Namespace="Skynet.WebAdministracion.Constants" %>

<asp:Content ID="HeadContext"  runat="server" ContentPlaceHolderID="HeadContent">
  
</asp:Content>

<asp:Content ID="AjaxContent"  runat="server" ContentPlaceHolderID="AjaxContent">
    <asp:ScriptManagerProxy runat="server">
        <Services>
            <asp:ServiceReference Path="~/Services/SkynetService.asmx" />
        </Services>
    </asp:ScriptManagerProxy>
    <script type="text/javascript" language="javascript">
        function loadCategories() {
            Skynet.WebSite.Services.SkynetService.DefaultCategories(onDefaultCategoriesSuccess);
        }
        function onDefaultCategoriesSuccess(result) {
            jQuery("#cbCategories").empty();
            jQuery.each(result, function (i, item) {
                jQuery("#cbCategories").append("<option id='" + item + "'>" + item + "</option>");
            });

        }
    </script>
</asp:Content>

<asp:Content ID="Content1" runat="server" contentplaceholderid="MenuContent">
    <asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1">
</asp:TreeView>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="MainContent">
</asp:Content>


